﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PixivGifDownLoad.Helper.PixivHelper
{
    internal class PixivGifJson
    {
        public class FramesItem
        {
            /// <summary>
            ///
            /// </summary>
            public string file { get; set; }

            /// <summary>
            ///
            /// </summary>
            public int delay { get; set; }
        }

        public class Body
        {
            /// <summary>
            ///
            /// </summary>
            public string src { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string originalSrc { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string mime_type { get; set; }

            /// <summary>
            ///
            /// </summary>
            public List<FramesItem> frames { get; set; }
        }

        public class Root
        {
            /// <summary>
            ///
            /// </summary>
            public string error { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string message { get; set; }

            /// <summary>
            ///
            /// </summary>
            public Body body { get; set; }
        }
    }
}